/* 
 *   WWW.COO8.COM  
 */

package com.gm.memberShip.menu.model; 

import org.apache.commons.lang.StringUtils;
import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;


import java.util.*;
import org.apache.commons.lang.StringUtils;
 

import com.gm.memberShip.menu.model.*;
import com.gm.memberShip.menu.persistence.interfaces.*;
import com.gm.memberShip.menu.business.interfaces.*;  

/**
 * @author  JIANGCHENG
 * @version 1.0
 * @since 1.0
 */


public class Module  implements java.io.Serializable {
	private static final long serialVersionUID = 5454155825314635342L;
	
	//alias
	public static final String TABLE_ALIAS = "Module";
	public static final String ALIAS_ID = "id";
	public static final String ALIAS_APPLICATION_ID = "applicationId";
	public static final String ALIAS_MODULE_ID = "moduleId";
	public static final String ALIAS_MODULE_NAME = "moduleName";
	public static final String ALIAS_PAR_MODULE_ID = "parModuleId";
	public static final String ALIAS_ADD_TIME = "addTime";
	public static final String ALIAS_DESCRIPTION = "description";
	public static final String ALIAS_MODULE_TYPE = "moduleType";
	
	 
	 
	//columns START
	private java.lang.Integer id;
	private java.lang.Object applicationId;
	private java.lang.Integer moduleId;
	private java.lang.String moduleName;
	private java.lang.Integer parModuleId;
	private java.util.Date addTime;
	private java.lang.Object description;
	private java.lang.Object moduleType;
	//columns END

	public Module(){
	}

	public Module(
		java.lang.Integer moduleId
	){
		this.moduleId = moduleId;
	} 
		 
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.Integer getId() {
		return this.id;
	}
		 
	public void setApplicationId(java.lang.Object value) {
		this.applicationId = value;
	}
	
	public java.lang.Object getApplicationId() {
		return this.applicationId;
	}
		 
	public void setModuleId(java.lang.Integer value) {
		this.moduleId = value;
	}
	
	public java.lang.Integer getModuleId() {
		return this.moduleId;
	}
		 
	public void setModuleName(java.lang.String value) {
		this.moduleName = value;
	}
	
	public java.lang.String getModuleName() {
		return this.moduleName;
	}
		 
	public void setParModuleId(java.lang.Integer value) {
		this.parModuleId = value;
	}
	
	public java.lang.Integer getParModuleId() {
		return this.parModuleId;
	}
		 
	public void setAddTime(java.util.Date value) {
		this.addTime = value;
	}
	
	public java.util.Date getAddTime() {
		return this.addTime;
	}
		 
	public void setDescription(java.lang.Object value) {
		this.description = value;
	}
	
	public java.lang.Object getDescription() {
		return this.description;
	}
		 
	public void setModuleType(java.lang.Object value) {
		this.moduleType = value;
	}
	
	public java.lang.Object getModuleType() {
		return this.moduleType;
	}

	public String toString() {
		return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
			.append("Id",getId())
			.append("ApplicationId",getApplicationId())
			.append("ModuleId",getModuleId())
			.append("ModuleName",getModuleName())
			.append("ParModuleId",getParModuleId())
			.append("AddTime",getAddTime())
			.append("Description",getDescription())
			.append("ModuleType",getModuleType())
			.toString();
	}
	
	public int hashCode() {
		return new HashCodeBuilder()
			.append(getModuleId())
			.toHashCode();
	}
	
	public boolean equals(Object obj) {
		if(obj instanceof Module == false) return false;
		if(this == obj) return true;
		Module other = (Module)obj;
		return new EqualsBuilder()
			.append(getModuleId(),other.getModuleId())
			.isEquals();
	}
}

